package com.tebiecloud.store.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 门店员工关联表
 * @author tebie
 * @date 2019-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StoreStaffRef extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 门店员工关联id
     */
    @TableId(value = "store_staff_ref_id", type = IdType.ID_WORKER)
    private Long storeStaffRefId;

    /**
     * 门店id
     */
    private Long storeId;

    /**
     * 员工id
     */
    private Long storeStaffId;

    /**
     * 角色编码
     */
    private String roleCode;

    /**
     * 入职时间
     */
    private Date entryTime;

    /**
     * 创建人id
     */
    private Long userId;

    /**
     * 切换为当前门店时间
     */
    private Date switchTime;

}
